import { createApp } from 'vue'
import { createPinia, defineStore } from 'pinia'
import piniaPersist from 'pinia-plugin-persist-uni'

import { useOrderStore } from './models/order'

export const useStore = defineStore('useStore', {
  state: () => {
    return {
      useOrderStore: useOrderStore(),
    }
  },
})

const pinia = createPinia()
pinia.use(piniaPersist)

export default pinia
